package licode.unisop.types.dp;

import licode.unisop.types.BaseIdentifier;
import org.springframework.util.Assert;

public class MenuCode implements BaseIdentifier<String> {
    private final String id;

    public MenuCode(String id) {
        Assert.notNull(id, "菜单编码为空：" + id);
        this.id = id;
    }

    @Override
    public String getId() {
        return id;
    }

    public boolean equals(MenuCode other) {
        return id.equals(other.id);
    }
}
